@import '~antd/lib/style/themes/default';

@default-width: 64px;
@default-height: @default-width;
@small-width: 40px;
@small-height: @small-width;

.upload-image-cpt-wrapper {
  display: flex;
}
.upload-image-cpt {
  float: left;
  &.hideDeleteIcon {
    .anticon-delete {
      display: none;
    }
  }
  &.small {
    .ant-upload-list-item-thumbnail.anticon::before {
      line-height: @small-width - @small-width / 8 * 2 !important;
    }
    .ant-upload-list-item {
      width: @small-width;
      height: @small-height;
      margin-right: @small-width / 8 !important;
      padding: @small-width / 8 !important;
      &:last-child {
        margin-right: @small-width / 4 !important;
      }
    }
    .ant-upload.ant-upload-select-picture-card {
      width: @small-width;
      height: @small-height;
    }
  }
  .ant-upload-list-item {
    width: @default-width;
    height: @default-height;
    margin-right: @default-width / 8 !important;
    &:last-child {
      margin-right: @default-width / 4 !important;
    }
  }
  .ant-upload.ant-upload-select-picture-card {
    width: @default-width;
    height: @default-height;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #fff;
    padding-top: 0;

    .anticon-plus {
      font-size: 24px !important;
    }
  }
  .ant-upload-list-picture-card .ant-upload-list-item-info:before {
    left: 0;
    top: 0;
  }
}
.self-img-preview {
  width: 80% !important;
  //top: 0 !important;

  .ant-modal-body {
    .image-gallery-image {
      position: relative;
      height: 600px;

      align-items: center;
      justify-content: center;
      img {
        position: absolute;
        max-height: 100%;
        max-width: 100%;
        width: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }
}
